//
//  LBQRequestMobileLoginRegister.m
//  liBaQiang
//
//  Created by 奇林刘 on 2018/10/22.
//  Copyright © 2018年 liu. All rights reserved.
//

#import "LBQRequestMobileLoginRegister.h"

@implementation LBQRequestMobileLoginRegister

+ (NSString *)urlComponent {
    return @"/mobile/login/register";
}

+ (void)goRequestWithName:(nonnull NSString *)name
                   mobile:(nonnull NSString *)mobile
                 password:(nonnull NSString *)password
                     code:(nonnull NSString *)code
                  success:(Success)success
                  failure:(Failure)failure {
    
    NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
    
    parameters[@"name"] = name;
    parameters[@"mobile"] = mobile;
    parameters[@"password"] = password;
    parameters[@"code"] = code;
    
    [self POSTWithParameters:parameters success:success failure:failure];
}

@end
